<div class="Popup">
    <div class="Popup-window">
        <div class="panel-default">
            <div class="panel-heading font-bold">退款</div>
            <div class="panel-body">
                <form name="refundForm" method="post" class="ng-pristine ng-valid" >
                    <div class="group-model m-b-xs block">
                        <label class="m-b-sm inline">
                            退款金额
                            <span class="text-danger h6">(最大退款金额为：{{ordersRefundVO.maxRefundMoney |number:2}})</span>
                        </label>
                        <input type="number" ng-model="ordersRefundVO.money" name="money" class="form-control" min="0.01" step="0.01"
                               max="{{ordersRefundVO.maxRefundMoney |number:2}}" placeholder="请输入退款金额" ng-pattern="/^[0-9]+(.[0-9]{1,2})?$/" required>
                        <div class="block" ng-if="refundForm.money.$touched">
                            <span class="text m-t-xs block text-danger" ng-if="refundForm.money.$error.required">请输入退款金额</span>
                            <span class="text-danger m-t-xs block m-l-sm h6" ng-if="refundForm.money.$error.min">退款金额不得低于最小值</span>
                            <span class="text-danger m-t-xs block m-l-sm h6" ng-if="refundForm.money.$error.max">退款金额不得高于最大值</span>
                            <span class="text-danger m-t-xs block m-l-sm h6" ng-if="refundForm.money.$error.pattern">退款金额最多保留两位小数</span>
                        </div>
                    </div>
                    <div class="group-model m-b-xs block">
                        <label class="m-b-sm inline">退款原因</label>
                        <textarea rows="6" name="reason" class="form-control h6" ng-model="ordersRefundVO.reason" placeholder="请输入退款原因" required></textarea>
                        <div class="pull-left" ng-if="refundForm.reason.$touched">
                            <span class="text text-danger" ng-if="refundForm.reason.$error.required">请填写退款原因</span>
                        </div>
                    </div>
                    <div class="m-t-sm pull-right">
                        <button class="btn m-b-xs btn-info btn-sm" ng-click="ok()" ng-disabled="refundForm.$invalid">保存</button>
                        <div class="btn m-b-xs btn-default btn-sm" ng-click="cancel()">取消</div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
